<template>
        <ul class="menuList">
            <li class="menuItem" @click="getWMTS">
                <p>城阳区瓦片</p>
            </li>
            <li class="menuItem" @click="getWMTS2">
                <p>湛江港瓦片</p>
            </li>
            <li class="menuItem" @click="getTerrain">
                <p>打开地形</p>
            </li>
        </ul>
</template>
<script type="module">
export default{
    methods:{
        getWMTS(){
            global.serviceUtil.getWMTS({        
                url:'http://121.4.131.58:8066/geoserver/gwc/service/wmts',
                layer: 'xdgis:chengyang_clipped_alpha',
                rec:'120.10133743286133;36.1730432510376;120.57568073272705;36.39925003051758'
            });
        },
        getWMTS2(){
            global.serviceUtil.getWMTS({
                // url:'http://121.4.131.58:8066/geoserver/gwc/service/wmts',
                // layer:'xdgis:霞山区_clipped',
                // rec:'110.3130555151804;21.122415206191814;110.44323921164478;21.247842265269842',

                url:'http://121.4.131.58:8066/geoserver/gwc/service/wmts',
                layer:'xdgis:zjport_level_16',
                rec:'110.369338989;21.128539972;110.417060852;21.184411762'
            })
        },
        getTerrain(){
            let  terrainProvider =new Cesium.CesiumTerrainProvider({
    url: Cesium.IonResource.fromAssetId(3956),
  });
  global.viewer.terrainProvider =terrainProvider;
        }
    }
}
</script>